/* mbed Microcontroller Library
 * Copyright (c) 2006-2013 ARM Limited
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef MBED_EX_BOARD_H
#define MBED_EX_BOARD_H


#define STDIO_UART_TX     USBTX
#define STDIO_UART_RX     USBRX
#define STDIO_UART        UART_0
#define STDIO_BAUD        115200

#define U3_TX    	    P4_1
#define U3_RX    	    P4_2
#define WIFI_RST	    P7_3

#define RS485_TX    	P3_4
#define RS485_RX    	P3_5
#define RS485_CTRL_PIN	(P1_4)
#define RS485_SEND 		(1)
#define RS485_RECV 		(0)

#define    LED1         GPIO3_14
#define    LED2         GPIO3_12
#define    LED3         GPIO3_13

#define    LED_YELLOW   GPIO3_14
#define    LED_GREEN    GPIO3_12
#define    LED_RED      GPIO3_13

#define    LED_RUN      GPIO3_14
#define    LED_FM       GPIO3_13
#define    LED_GATE     GPIO3_12

#define    SERIAL_SCK   P4_3	// 5Pin
#define    SERIAL_SDA   P4_10   // 4Pin
#define    SERIAL_OUT   P4_6	// 3Pin
#define    SERIAL_SOE   P4_5	// 2Pin

#endif
